package com.property;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//这里初始值也必须不为null
//@DefaultAno(desc = null)//报错
@DefaultAno(desc = "hhah")
public class DefaultDemo {

}

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@interface DefaultAno {

  //报错
//  String name() default null;
  String desc() default "";
}
